#include <QtGui/QApplication>
#include "mainwindow.h"
#include "connector.h"
#include "links/linkfactory.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    LinkFactory f;
    ProxyFactory p;
    MainWindow w(&f,&p);
    Connector c(&f,&p);
    QObject::connect(&w, SIGNAL(connectEd(QString)), &c, SLOT(connectEd(QString)));
    QObject::connect(&c, SIGNAL(connErr(QAbstractSocket::SocketError)), &w, SLOT(connErr(QAbstractSocket::SocketError)));
    w.show();

    return a.exec();
}
